package android.lei.block;

import android.lei.block.activities.IntroActivity;
import android.lei.block.activities.MainActivity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 这里提供主页面需要的List信息，为Activity的名称和对它的描述信息
 * Created by Administrator on 2016/7/7.
 */

public class AtyList {
    /**
     * 对每一个Activity的描述信息
     */
    public static final String[] INTROS = {
            "用户引导类库"
    };
    /**
     * 获取Activity，以便点击时跳转到对应的界面中
     */
    public static final Class[] CLASSES = {
            IntroActivity.class
    };

    /**
     * 获取List列表
     *
     * @return
     */
    public static List<Map<String, Class>> getAtyLists() {
        List<Map<String, Class>> activities = new ArrayList<Map<String, Class>>();
        Map<String, Class> map = null;

        for (int i = 0; i < INTROS.length; i++) {
            map = new HashMap<String, Class>();
            map.put(INTROS[i], CLASSES[i]);

            activities.add(map);
        }

        return activities;
    }
}
